import instance  from "./request";
//获取验证码请求
export const  CaptchaCodeApi= ()=>instance.get('/api/vc?time='+Date.now());
export const LoginApi = (params) => instance.post('/api/login/',params);
export const EmployeeList = (params) => instance.post('/api/employee/list',params);
export const EmployeeInsert = (params) => instance.post('/api/employee/save',params);
export const EmployeeUpdate = (params) => instance.post('/api/employee/update',params);
export const EmployeeDelete = (params) => instance.post('/api/employee/delete',params);
export const EmployeeTemplateDownload= (params) => instance.post('/api/employee/templateDownload',params,{
    responseType:'blob'
});
export const EmployeeImport= (params) => instance.post('/api/employee/importEmp',params,{
    headers:{
    }
});
export const EmployeeExport = (params) => instance.post('/api/employee/exportEmp',params,{
    responseType:'blob'
});
export const DictionaryList = (params) => instance.post('/api/dictionary/list',params);


